<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			div {
				background-color: #50c28b;
				background-image: url(../0118/2.jpg);
				background-repeat: no-repeat;
				/* background-size: 100% 100%;
					background-size: x y;
						x：百分比和具体的像素值
						只写一个的时候，则同比缩放
				 */
				background-size: 100px 100px;
				background-position: center;
				height: 500px;
			}
		</style>
	</head>
	<body>
		<div>
			<span>这是内容</span>
		</div>
	</body>
</html>
